<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
	<style type="text/css">
		html,body{
			height: 100%;
		}
		 body{
		 	 background: #fff url() 0 0 no-repeat;
		 	 
		 }
		*{
			margin: 0px;
			padding:0px;
			color: blue;
		}
		li{
			list-style: none;
		}
		.btn{
			margin: 200px auto;
			font-size: 20px;
			text-align: center;
		}
		.box_out{
			width: 100%;
			height: 100%;
			background: rgba(0,0,0,.6);
			position: fixed;
			top: 0px;
			left: 0px;
			display: none;
		}
		.content{
			width: 600px;
			height: 200px;
			background: #fff url() 0 0 no-repeat;
			color: #000;
			position: fixed;
			top: -200px;
			left: 50%;
			margin-left: -300px;
		}
		.content h2,.content p{
			color: #000;
		}

		

	</style>
	<script type="text/javascript">
		$(function  () {

			$('.btn').click(function(event) {
				$('.box_out').show();

				$('.content').animate({top: '200px'},200);
			});

			$('.box_out').click(function(event) {
				$(this).hide();
				$('.content').animate({top: '-200px'},200);
			});
		})
	</script>
</head>
<body>
	<p class="btn">jquery点我</p>
	<div class="box_out"></div>
	<div class="content">
		<h2>jquery导出层</h2>
		<p>This is a default modal in all its glory, but any of the styles here can easily be changed in the CSS.</p>
	</div>
</body>
</html>